# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1292461153.3046739
_template_filename=u'/home/sunzheng/Projects/FidoWeb/FidoWeb_0.98/fidoweb/templates/map/maploc_module_discounts.mako'
_template_uri=u'map/maploc_module_discounts.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = []


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<div id="discounts">\n\t<style type="text/css">\n\t\t#discountlist #list_item:hover{background-color:#F9F9F9;}\n\t</style>\n\t<h2>\u4f18\u60e0</h2>\n')
        # SOURCE LINE 6
        if c.discounts.count() == 0 :
            # SOURCE LINE 7
            __M_writer(u'\t\t<div style="padding-left:10px;">\u6682\u65e0\u4f18\u60e0\u3002</div>\n')
            # SOURCE LINE 8
        else :
            # SOURCE LINE 9
            __M_writer(u'\t\t<div id="discountlist" style="padding-top:5px;">\n')
            # SOURCE LINE 10
            for d in c.discounts :
                # SOURCE LINE 11
                __M_writer(u'\t\t\t<div id="list_item" style="border-bottom:1px solid #DDDDDD;padding:5px;">\n\t\t\t\t<div style="color:#A1A0A0;">')
                # SOURCE LINE 12
                __M_writer(filters.decode.utf8(d.validTime.strftime('%Y-%m-%d')))
                __M_writer(u' -- ')
                __M_writer(filters.decode.utf8(d.expireTime.strftime('%Y-%m-%d')))
                __M_writer(u'</div>\n\t\t\t\t<div style="padding-left:10px;">')
                # SOURCE LINE 13
                __M_writer(filters.decode.utf8(d.name))
                __M_writer(u'</div>\n\t\t\t</div>\n')
                pass
            # SOURCE LINE 16
            __M_writer(u'\t\t</div>\n')
            pass
        # SOURCE LINE 18
        __M_writer(u'</div>')
        return ''
    finally:
        context.caller_stack._pop_frame()


